import request from "../utils/request";

export function subLogin(ruleForm){
    return request({
        url: '/ses/mdStoreUser/login',
        method: 'post',
        data: ruleForm
    })
}


export function selectAllByPage(formInline) {
    return request({
        url: '/ses/mdStore/selectAll',
        method: 'get',
        params: {
            startpage: formInline.page,
            pagesize: formInline.limit,
            storeName: formInline.storeName,
        }
    });
}

export function check(row) {
    return request({
        url: '/ses/mdStore/check/' + row.storeId,
        method: 'post',
    });
}

export function postAMessage(row) {
    return request({
        url: '/ses/pmMessage/postAMessageNotificationAfterApproval/' + row.storeId,
        method: 'post',
    });
}